<?php defined( '_JEXEC') or die; //no direct access ?>    
    <script type="text/javascript">
        // JAVASCRIPT VARS
        // cache buster
        var cacheBuster = "?t=" + Date.parse(new Date());

        // swf path
        var swfPath = "<?php echo $this->baseurl; ?>/components/com_normal/mp3player/preview.swf";
        //swfPath += cacheBuster; // uncomment this line to activate the cache buster

        // stage dimensions
        var stageW = 400; //560;//"100%";
        var stageH = 80; //300;//"100%";

        // ATTRIBUTES
        var attributes = {};
        attributes.id = 'FlabellComponent';
        attributes.name = attributes.id;

        // PARAMS
        var params = {};
        params.allowfullscreen = "true";
        params.allowScriptAccess = "always";
        params.bgcolor = "#ffffff";
        params.wmode = "transparent";


        /* FLASH VARS */
        var flashvars = {};

        /// if commented / delete these lines, the component will take the stage dimensions defined 
        /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml			
        flashvars.componentWidth = stageW - 1; //281; // define these dimensions different then the stage dimension only for preview because the component is samller then the stage
        flashvars.componentHeight = stageH - 1; //78;
        /// path to the content folder(where the xml files, images or video are nested)
        /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
        flashvars.pathToFiles = "";
        flashvars.xmlPath = "<?php echo $this->baseurl; ?>/components/com_normal/mp3player/player/xml/settings.xml";

        // other vars
        flashvars.artistName = "Gippsland History";
        flashvars.songName = "<?php echo $this->file->name; ?>";
        flashvars.songURL = "<?php echo $this->linkToFile; ?>";


        /** EMBED THE SWF**/
        swfobject.embedSWF(swfPath, attributes.id, stageW, stageH, "9.0.124", "<?php echo $this->baseurl; ?>/components/com_normal/mp3player/js/expressInstall.swf", flashvars, params);
    </script>
    <div class="subhead">
        <h2 class="heading">
            <a name="content"></a>
            Audio's Detail:
        </h2>
        <table border="0" cellpadding="1" width="100%">
  <tr>
    <th width="15%" scope="row">Name</th>
    <td width="30%"><?php echo $this->file->name; ?></td>
    <td width="55%" rowspan="4"><p><div id="FlabellComponent"></div></p>
    <p><input type="button" value="Download" onclick="window.location='<?php echo JRoute::_('index.php?option=com_volunteer&task=downloadfile&fileId=' . $this->file->id); ?>';"/></p></td>
  </tr>
  <tr>
    <th scope="row">Location</th>
    <td><?php echo $this->location; ?></td>
  </tr>
  <tr>
    <th scope="row">Timespan</th>
    <td><?php echo $this->timespan; ?></td>
  </tr>
  <tr>
    <th scope="row">Industry</th>
    <td><?php echo $this->industry; ?></td>
  </tr>
  <tr>
    <th scope="row">Description</th>
    <td colspan="2"><?php echo $this->file->description; ?></td>
  </tr>
  <tr>
    <th scope="row">Keywords</th>
    <td colspan="2"><?php foreach($this->
                                keywords as $keyword) : ?>
								<img src="<?php echo $this->baseurl ?>/templates/gippslandsitetemplate2/images/1305849663_001_36.png" border="0" />
                                <a href="<?php echo JRoute::_('index.php?option=com_normal&location=-1&timespan=-1&industry=-1&keywords=' . $keyword); ?>"><?php echo $keyword; ?></a>
                                &nbsp;&nbsp;&nbsp;
                                <?php endforeach;?></td>
  </tr>
  <tr>
    <td colspan="3" scope="row"><a target="_blank" href="<?php echo JRoute::_('index.php?option=com_normal&view=filedetail&content=acknowledgement&fileId=' . $this->file->id); ?>">View Acknowledgement</a>&nbsp;&nbsp;&nbsp;
								<a target="_blank" href="<?php echo JRoute::_('index.php?option=com_normal&view=feedback&&fileId=' . $this->file->id); ?>">Write a comment</a></td>
  </tr>
</table>
    </div>